how to create pattern in c program